package com.cp.admin.modular.user.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户相册
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-25
 */
@TableName("user_photo_album")
public class UserPhotoAlbum extends Model<UserPhotoAlbum> {

    private static final long serialVersionUID = 1L;

    /**
     * 相册id
     */
    private Long id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 权限 0仅对好友开放 1公开 -1仅自己可见
     */
    private Integer authority;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间 
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getAuthority() {
        return authority;
    }

    public void setAuthority(Integer authority) {
        this.authority = authority;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserPhotoAlbum{" +
        "id=" + id +
        ", userId=" + userId +
        ", authority=" + authority +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
